<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>学员信息</title>
    <!-- Bootstrap -->
    <link href="<?php echo base_url() . 'application/views/bootstrap/css/bootstrap.min.css' ?>" rel="stylesheet">
    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">
                <div class="panel panel-default studentinfo">
                    <div class="panel-heading">
                        <h3 class="panel-title">学生作业信息一览表</h3>
                    </div>
                    <div class="panel-body">
                        <table class="table table-striped">
                            <tr>
                                <td>序号</td>
                                <td>姓名</td>
                                <td>学号</td>
                                <td>班级</td>
                                <td>地址</td>
                                <td>成绩</td>
                            </tr>
                            <?php foreach ($students as $line_num => $line): ?>
                            <tr>
                                <td>
                                    <?php echo $line_num+1 ?>
                                </td>
                                <td>
                                    <?php echo $line['stuname'] ?>
                                </td>
                                <td>
                                    <?php echo $line['stunumber'] ?>
                                </td>
                                <td>
                                    <?php echo $line['stuclass']?'78节':'56节' ?>
                                </td>
                                <td>
                                    <a href="<?php echo $line['stuurl'] ?>" target="_black">
                                        <?php echo $line['stuurl'] ?>
                                    </a>
                                </td>
                                <td>
                                    <a href="<?php echo site_url('welcome/score/') . $line['stu_id'] ?>" target="_black">
                                        <span class="glyphicon glyphicon-eye-open"></span>
                                    </a>
                                </td>
                            </tr>
                            <?php endforeach;?>
                        </table>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://cdn.bootcss.com/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="<?php echo base_url('application/views/bootstrap/js/bootstrap.min.js') ?>"></script>
    <script src="<?php echo base_url('application/views/layer/layer.js') ?>"></script>
    <script>
    <?php if($message) echo "layer.msg('". $message . "');"; ?>
    </script>
</body>

</html>